<?php

// the usual include
include("basepath.php");

// get the file and directory
$file=$_GET["file"];
$dir=$_GET["dir"];

// combine the two to get the full path without it being in the URL
// basepath is the filesystem directory
$fullpath="$basepath" . "$dir";
// webpath is the web server path
$fullwebpath="$webpath" . "$dir";

echo "<html><head><title>UAR Dropbox Administration : Delete File</title>
<link rel='stylesheet' type='text/css' href='style.css'>
</head><body>
<h3>Are you sure you want to delete the file $dir/$file?</h3>
<form action='deletefile-do.php?file=$file&dir=$dir' method='post'>
<input type='submit' value='Delete'></form><a href='fileman.php?path=$dir'>Cancel</a></body></html>";
?>
